/**
 * Copyright(c) 2014 Xunton Solutions
 *
 * History:
 *   15-11-4 下午4:23 Created by dwzhang
 */
package com.jade.framework.base.log;

import org.apache.commons.logging.LogFactory;

/**
 * 日志工具类。
 *
 * @author <a href="mailto:dwzhang@xunton.com">dwzhang</a> 
 * @version 1.0 15-11-4 下午4:23
 */
public class LogUtils
{
    public static Log getLog(Class clazz)
    {
        org.apache.commons.logging.Log log = LogFactory.getLog(clazz);
        return new CommonsLog(log);
    }

    public static Log getLog(String name)
    {
        org.apache.commons.logging.Log log = LogFactory.getLog(name);
        return new CommonsLog(log);
    }
}
